import request from '@/utils/request'

// 查询岗位列表
export function listHlpost(query) {
  return request({
    url: '/hotel/hlpost/list',
    method: 'get',
    params: query
  })
}

// 查询岗位详细
export function getHlpost(postId) {
  return request({
    url: '/hotel/hlpost/' + postId,
    method: 'get'
  })
}

// 新增岗位
export function addHlpost(data) {
  return request({
    url: '/hotel/hlpost',
    method: 'post',
    data: data
  })
}

// 修改岗位
export function updateHlpost(data) {
  return request({
    url: '/hotel/hlpost',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delHlpost(id) {
  return request({
    url: '/hotel/hlpost/' + id,
    method: 'delete'
  })
}
